package jbank;

/**
 * 
 * Customer Class 
 * 
 */


public class Customer{

    private Account accounts = new Account();
    private String cityAddress;
    private int custId;
    private String dateOfBirth;
    private String email;
    private String firstName;
    private String lastName;
    private int numberOfCurrentAccounts;
    private String streetAddress;
    private String phoneNumber;
    private String zipOrPostalCode;
    
    public Customer()
    {
    }
    
    public Customer(String fname, String lname , String dob){
        
     firstName = fname;
     lastName = lname;
     dateOfBirth = dob;
        
    }
    
    public Customer(String firstName, String lastName, String dateOfBirth, int custId){   
        
    }

    public String getAddress(){
     
        return streetAddress + " "+cityAddress+""+zipOrPostalCode;        
    }
    
    public Account getAccount(){
     
        return accounts;
    }
    
    public int getCustomerID(){
        
        return custId;        
    }
    
    public String getEmail(){        
    
        return email;
    }
    
    public String getCustomerName(){
     
        return lastName+","+firstName;
    }
 
    public void setCustomerName(String fname , String lname){
    	
    	firstName = fname;
    	lastName = lname;
    	    	
    }
 
    public void setAccount(Account c){
    	
    	accounts = c;
    }
    
    public void setCityAddress(String cA){
    	
    	cityAddress = cA;
    	
    }
    
   public void setEmail(String eM){
	   
	   email = eM;
	   
   }
   
   public void setStreetAddress(String sA){
	   
	   streetAddress = sA;
	   
   }
    
}